import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import org.objectweb.asm.*;



public class Main
{
		public static void main(String args[])
		{
			String filename;
			BytecodeParser ob;
			
			File filePath = new File("C:/JavaProjects/bin/");
			
			String[] children = filePath.list();
			
			if (children == null) {
			    // Either dir does not exist or is not a directory
			} 
			
			else {
			    for (int i=0; i<children.length; i++) {
			        // Get filename of file or directory
			        filename = children[i];
			        
			        if(filename.endsWith(".class"))
			        {
			        	ob = new BytecodeParser(filePath.toString(),filename);
			        	ob.parseAndConvert();
			        }
			    }
			}
		}
}



